import requests
import pprint
import re
url='https://pcw-api.iqiyi.com/album/album/fytoplist?cid=1&dim=hour&page=1&size=10&type=realTime'
headers = {
        'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
        'cookie':'UM_distinctid=1716941d927652-0fb3ea40be025c-335e4e71-144000-1716941d929197; __login_his_sync=0; tourist_expires=1; Hm_lvt_407473d433e871de861cf818aa1405a1=1586608862; _GUID=d8eec002-35da-1ad7-ac12-9ca1c3cb4309; CNZZDATA1261814609=674853875-1586608471-https%253A%252F%252Fwww.mkzhan.com%252F%7C1586608471; readMode=scroll; CNZZDATA1262045698=1069876723-1586605088-https%253A%252F%252Fwww.baidu.com%252F%7C1586607119; redirect_url=%2F211692%2F; Hm_lpvt_407473d433e871de861cf818aa1405a1=1586610847; cn_1262045698_dplus=%7B%22distinct_id%22%3A%20%221716941d927652-0fb3ea40be025c-335e4e71-144000-1716941d929197%22%2C%22%24_sessionid%22%3A%200%2C%22%24_sessionTime%22%3A%201586610857%2C%22%24dp%22%3A%200%2C%22%24_sessionPVTime%22%3A%201586610857%7D',
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36',
        'referer': 'https://www.mkzhan.com/search/?keyword=%E6%96%97%E7%BD%97%E5%A4%A7%E9%99%86',
        'cookie': 'QC005=09cdc8c893d6eb8d6a6308f3d569930c; QC173=1; Hm_lvt_53b7374a63c37483e5dd97d78d9bb36e=1587781375; Hm_lpvt_53b7374a63c37483e5dd97d78d9bb36e=1587781375; QC007=https%253A%252F%252Fwww.baidu.com%252Flink%253Furl%253Dh1HVbYO7e5iODa_pOmJVcktnqYWuT5vihX60iZZQXka%2526wd%253D%2526eqid%253Df9b40cdf00011cfe000000055ea39efa; QC006=aoy2owmcx2grgg3h5my76l9c; QC008=1587781374.1587781374.1587781376.2; nu=0; QC010=223570847; QYABEX={"pcw_home_movie":{"value":"old","abtest":"146_A"}}; QC175=%7B%22upd%22%3Atrue%2C%22ct%22%3A%22%22%7D; T00404=f73a2f875e4794f73b5ed611aa08b150; QC178=true; __dfp=a1b0a0c5d3259748b4bf9c33667ecd5a3fdeace0b780158a1b7ad0c9f044b527d4@1589077375263@1587781376263; QC124=1%7C0; QC021=%5B%7B%22key%22%3A%22%E7%BB%88%E7%BB%93%E8%80%85%22%7D%2C%7B%22key%22%3A%22%E7%BB%88%E7%BB%93%E8%80%85%E6%B0%91%E5%9B%BD%E5%A5%87%E6%8E%A2%22%7D%5D; IMS=IggQABj_vJH1BSokCiA4NDQyMDhhYTY3NGYyYjQ5YzcyMjU2NDVkOWExYTBlMxAAciQKIDg0NDIwOGFhNjc0ZjJiNDljNzIyNTY0NWQ5YTFhMGUzEAA'
    }
response=requests.get(url,headers=headers,)
response.encoding=response.apparent_encoding
data=response.json()
data1=data['data']
for data_list in data1:
        vedio_url=data_list['episode_play_url']
        print(vedio_url)